package com.dys.testoverwrite;

/**
 * @className: com.dys.testoverwrite.BasePerson
 * @description: com.dys.testoverwrite
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/18 下午9:46
 */
public class BasePerson {

    private String name;

    public void eat() {
        System.out.println("父类吃的方法");
    }

    public BasePerson sleep() {
        System.out.println("父类睡觉的方法");
        return new BasePerson();
    }
}
